import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Container from "@/components/Container";
import Main from "@/components/Main";
import Aside from "@/components/Aside";
import TeacherList from "@/components/teacher/TeacherList";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/container',
      name: 'Container',
      component: Container,
      children: [{
        path: '',
        name: 'Aside',
        component: Aside,
        children: [{
          path: '',
          name: 'Main',
          component: Main
        }, {
          path: '/teacherList',
          name: 'TeacherList',
          component: TeacherList
        }]
      }]
    }
  ],
  mode: "history"
})
